<div id="page_content">
<h2>Customers</h2>

<table class="kp_table">
  <tr>
    <th>Name</th>
    <th>Address</th>
    <th>Phone Number</th>
    <th>Email</th>
  </tr>

<% @customers.each do |customer| %>
  <tr>
    <td><%= link_to customer.name, customer %></td>
    <td><%= customer.house_number %>
    <%= customer.street %>
    <%= customer.city %></td>
    <td><%= customer.phone %></td>
    <td><%= customer.email %></td>

    <td><%= link_to 'Edit', edit_customer_path(customer) %></td>
    <td><%= link_to 'Delete', customer, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Customer', new_customer_path %>
</div>